花费 16 ms
unity 协程与async、await

协程(Coroutine) 协程就像一个函数,能够暂停执行并将控制权返还给 Unity,然后在指定的时间继续执行。 协程本质上是一个用返回类型 IEnumerator 声明的函数,并在主体中的某个位 ...

Tue Dec 17 00:53:00 CST 2019 0 5195
unity Mathf.Atan2()

Mathf.Atan2(float y,float x) 如果y和x都为正数,得到的结果也一定是正数。 计算rotationY时,使用Mathf.Atan2(+z,+x),得到的结果也一定是正数。 ...

Tue Apr 28 21:35:00 CST 2020 0 1204
Unity WebGL 去除移动端的警告

修改Build\UnityLoader.js。 把下面代码替换成false 为了避免每次构建时都需要手动更改,使用PostBuildHandler脚本。 ...

Mon Apr 20 18:44:00 CST 2020 0 1196
3DMAX、C4D、Maya导出fbx到Unity设置

3DMAX 1.选中需要导出的模型,在Hierarchy面板Adjust Pivot中点击Affect Pivot Only。 2.接着在下方的Alignment中点击Align to World。 ...

Fri Jan 08 17:59:00 CST 2021 0 478
Unity Mesh(网格)

Mesh: vertices: normals: uv: tangents: boneWeights : colors/colors32: triangle ...

Thu Aug 13 22:50:00 CST 2020 0 587
unity Physics.BoxCast说明

public static bool BoxCast (Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orien ...

Thu Mar 12 18:48:00 CST 2020 0 736
unity 在模型上绘画

注意: 1.调用Texture2D.SetPixel()和Texture2D.GetPixel()时,在纹理导入设置中,必须勾选Read/Write Enabled,纹理格式仅支持RGBA32, ...

Sun Feb 09 00:31:00 CST 2020 0 663

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM